<template>
  <!-- 无设备 -->
  <div class="no_device">
    <HeaderNav ></HeaderNav>
    <div class="desc1" v-html="$t('noDevice.title')"></div>
    <div class="desc2">{{ $t('noDevice.desc') }}</div>
    <div class="btn" @click="handleConnect">{{ $t('noDevice.allowAccess') }}</div>
    <!-- <img class="desc_img" src="../assets/imgs/Frame2.png" alt="" /> -->
    <Guide></Guide>
  </div>
</template>

<script setup>
import HeaderNav from "./HeaderNav.vue";
import Guide from "./Guide.vue";
import { useI18n } from 'vue-i18n';

const { t } = useI18n();
const emit = defineEmits(['btnClcik']) // 声明自定义事件

const handleConnect = async () => {
  emit('btnClcik')
};

</script>

<style scoped>
.no_device {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.no_device .desc1 {
  font-weight: bold;
  font-size: 48px;
  line-height: 100%;
  color: #fff;
  margin-top: 150px;
  text-align: center;
}
.no_device .desc2 {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 15px;
}
.no_device .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b35, #ff4500);
  width: 200px;
  height: 44px;
  line-height: 45px;
  border-radius: 22px;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}
.no_device .desc_img {
  width: 848px;
  height: 415px;
}
</style>
